cmake_minimum_required(VERSION 3.5)
project(slam)

list( APPEND CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/opt/lib/cmake/Ceres)
message(status " CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH}")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11 -O3")

find_package(OpenCV REQUIRED)

include_directories(
    ${OpenCV_INCLUDE_DIRS}
)

find_package( Ceres REQUIRED )
include_directories( ${CERES_INCLUDE_DIRS} )

add_executable(feature feature.cpp)
target_link_libraries(feature ${CERES_LIBRARIES} ${OpenCV_LIBS})

